﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Com.FoxGlobal.DanielChan.Hyperion.HFMProxy;

namespace WinFormTester
{
    public partial class Form1 : Form
    {
        HFMProxy proxy = new HFMProxy();

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            proxy.Login(textBox5.Text, textBox6.Text, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);
            MessageBox.Show("OK");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            listView1.Items.Clear();
            foreach (object temp in proxy.EnumTemplates())
            {
                listView1.Items.Add(temp.ToString());
            }
            MessageBox.Show("OK");
        }

        private void button2_Click(object sender, EventArgs e)
        {

            listView1.Items.Clear();
            foreach (object temp in proxy.EnumTemplates2())
            {
                listView1.Items.Add(temp.ToString());
            }
            MessageBox.Show("OK");
        }


    }
}
